import { UserModel } from "../../../models/user.js";
var _UserModel = new UserModel();
var _self;
Page({
  data: {
      inviteList:[]
  },

  onLoad: function (options) {
    _self = this;
    _UserModel.myInvite(function(data){
      if(data.length>0　&& data[0]!="ok"){
        _self.setData({
           inviteList:data[0].list
        })
        console.log(data[0].list);
      }
    })
  },

  onReady: function () {

  },

  onShow: function () {

  }
})